<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/crs.css">
        <title>Paper zuordnen</title>
    </head>
    <body>
            <form action="AssignPaper" method="POST">
                
                <h3>Paper wählen:</h3>
                <select name="paper" multiple>
                <c:forEach items="${paperlist}" var="paper">
                    <option value="${paper.getId()}">${paper.getFilename()}</option>
                </c:forEach>
                </select>
                
                <h3>Reviewer wählen:</h3>
                <select name="reviewer" multiple>
                <c:forEach items="${userlist}" var="user">
                    <option value="${user.getId()}">${user.getName()}</option>
                </c:forEach>
                </select>
                  
                <br/>
                <input type="hidden" name="action" value="assignpapertoreviewer"/>
                <input type="submit" value="Paper zuordnen">
        
            </form>
        </div>
        
        <br/> 
        
        <form action="OrganizerView">
            <input type="submit" value="OK"/>
        </form>

        <form action="LoginPage">
            <input type="hidden" name="action" value="logout"/>
            <input type="submit" value="Logout"/>
        </form>
    </body>
</html>
